Watch Pane

After you test a script, the Script Editor's Watch Pane will list tokens and variables in the script that are “watched” and their values. This pane is helpful when debugging your script. Each time you test your script, an instance of its watched items is saved.

To open the Watch Pane

To watch a variable in your script

Note: Tokens are automatically watched in your script when you get or set a token's value in your script.

  1. Call the DesignTools.Watch method in your script with the variable name and the variable itself as parameters.
  2. Note: The DesignTools class contains methods for helping debug scripts in the Designer. These methods do not do anything when the script runs on the Workflow Server.

  3. Run the Script.

To see values from a specific time the script ran

To see a history of a watched item's values

  1. Select an item in the watched items list.
  2. Click the View History button at the top of the Watch Pane.
  3. Note: If this button is disabled, the watched item only had one value.

  4. The ClosedHistory dialog box will show the value and type of variable or token each time it was watched.
  5. Optional: Select Show changes only in the History dialog box, to list only the times when the value changed, instead of every time the value was watched.
  6. Click OK to close the dialog box.

Example: A variable that is watched three times in the script will have three values listed in the History dialog box.

To delete the list of watched items

  1. Click the red X at the top of the Watch Pane.
  2. All lists of watched items will be deleted, not just the list selected in the Show watch from drop-down menu. Note that this action is irreversible.